/*
 * @Description: 接口定义
 * @Autor: LiuGang
 * @Date: 2022-04-14 09:25:52
 * @LastEditors: LiuGang
 * @LastEditTime: 2022-12-27 16:27:54
 */
import request from '@/utils/request'

// 获取接口
export function userInfoByUsername(query, page) {
    return request({
        url: '/userInfo/userInfoByUsername',
        method: 'post',
        data: query,
    })
}
// 新增
export function register(query, page) {
    return request({
        url: '/userInfo/register',
        method: 'post',
        data: query,
    })
}
// 修改
export function updateUserInfo(query, page) {
    return request({
        url: '/userInfo/update',
        method: 'post',
        data: query,
    })
}
// 修改status
export function updateStatus(query, page) {
    return request({
        url: '/userInfo/updateStatus',
        method: 'post',
        data: query,
    })
}

// 删除
export function deleteUserInfo(query, page) {
    return request({
        url: '/userInfo/delete',
        method: 'post',
        data: query,
    })
}

// 获取接口
export function queryAll(query, page) {
    return request({
        url: '/role/queryAll',
        method: 'post',
        data: query,
    })
}
// 新增
export function addRole(query, page) {
    return request({
        url: '/role/insert',
        method: 'post',
        data: query,
    })
}
// 修改
export function updateRole(query, page) {
    return request({
        url: '/role/update',
        method: 'post',
        data: query,
    })
}
// 删除
export function deleteRole(query, page) {
    return request({
        url: '/role/delete',
        method: 'post',
        data: query,
    })
}
// select
export function getPermissions(query, page) {
    return request({
        url: '/role/getPermissions',
        method: 'post',
        data: query,
    })
}
// save
export function savePermissions(query, page) {
    return request({
        url: '/role/savePermissions',
        method: 'post',
        data: query,
    })
}


